//
//  WZSearchViewC.m
//  中邮阅读APP
//
//  Created by 江洋大盗 on 2017/11/9.
//  Copyright © 2017年 WZYK. All rights reserved.
//

#import "TMSearchViewC.h"

@implementation TMSearchViewC

- (void)awakeFromNib
{
    [super awakeFromNib];
    self.searchView.layer.cornerRadius = 17.0f;
    self.searchView.layer.masksToBounds = YES;
    self.searchView.backgroundColor = [UIColor colorWithWhite:1 alpha:0.6];
   // self.backgroundColor = [UIColor hx_colorWithHexRGBAString:@"FFFFFF"];
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapAction)];
    [self.searchView addGestureRecognizer:tap];
}
- (void)tapAction {
    if (self.tapBlock) {
        self.tapBlock();
    }
}

- (IBAction)addressBtnAction:(UIButton *)sender {
    if (self.addressBlock) {
        self.addressBlock();
    }
}
- (IBAction)scanBtnAction:(UIButton *)sender {
    if (self.scanBlock) {
        self.scanBlock();
    }
}

@end
